package com.lsp.server.product.domain.po;

import lombok.Data;
import org.springframework.data.relational.core.sql.In;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName ProductShop
 * @Description 商品实体类
 * @Author Mr Hao
 * @Date 2021/11/25 14:40
 */
@Data
//product_shop据库表名
public class ProductShop {
    //商品id
    private Integer id;
    //商品名称
    private String name;
    //商品标题
    private String title;
    //商品简介
    private String descs;
    //商品图片
    private String img;
    //更多图片
    private String imgs;
    //品牌id
    private Integer brandId;
    //分类id
    private Integer typeId;
    //商品价格
    private Double price;
    //商品库存
    private int count;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date creteDate;
    //修改时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;

}
